package com.ailink.foodshop.controller;

//import com.ailink.foodshop.redis.PlanMac;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping
public class IndexController {

//    @Autowired
//    private PlanMac planMac;

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    @ResponseBody
    public String index() {
        return "Hello Food Shop！";
    }

//    @RequestMapping(value = "/mac", method = RequestMethod.GET)
//    @ResponseBody
//    public String getMac() {
//        return planMac.get("P1234");
//    }

}
